home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2000 February / PCW_2_2000.ISO / software / sw / notfall / xsetup.exe / _SETUP.2 / Group3 / XQ WinNT RAS Options 1.xpl < prev    next >
Encoding:
Text File  |  1999-05-13  |  1.1 KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Network\RAS & DUN"
  5. "NAME"="Keep sessions alive"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Keep RAS sessions alive"
  8. "DESCRIPTION 1"="The make sure that the connection to your ISP isn't killed when the line is silent, activate this option."
  9. "AUTHOR"="Xteq Systems"
  10. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  11. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  12. "COMMENT 2"="Version 1.0"
  13. "COMMENT 3"=" "
  14.  
  15.  
  16. sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\KeepRasConnections"
  17. Sub Plugin_Initialize 
  18.  if GetWinVer=2 then
  19.     i=RegReadValue(sp)  
  20.     if i=1 then
  21.        SetUIElement 1,true
  22.     end if
  23.  else
  24.   Disable
  25.  end if
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  b=GetUIElement(1)
  33.  if b=true then
  34.   Call RegWriteValue(sp,"1",1)
  35.  else
  36.   i=RegReadValue(sp)  
  37.   if not isempty(i) then
  38.      Call RegDeleteValue(sp)
  39.   end if
  40.  end if
  41.  
  42. End Sub
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.  
  47.  
  48.  
  49.